{#<!DOCTYPE html>#}
{#<html lang="en">#}
{#<head>#}
{#    <meta charset="UTF-8">#}
{#    <title>Title</title>#}
{#</head>#}
{#<body>#}
{#<form action="" method="post">#}
{#{% csrf_token %}#}
{#    <p>名称：<input type="text" name="c_name"  value="{{ret.name}}"><span>{{ k }}</span></p>#}
{#    <p>编号：<input type="text" name="ass_id"  value="{{ret.ass_id}}"><span>{{ k }}</span></p>#}
{#    <p>购买时间：<input type="text" name="room"  value="{{ret.times}}"><span>{{ k }}</span></p>#}
{#    <p>所属实验室：<select name="ass_cla" id="" multiple="multiple">#}
{#        {% for foo in assets_clas %}#}
{#            {% if foo in ret.assets_class.all %}#}
{#                <option value="{{ foo.pk }}" selected >{{ foo.name }}</option>#}
{#                {% else %}#}
{#                <option value="{{ foo.pk }}" >{{ foo.name }}</option>#}
{#             {% endif %}#}
{#        {% endfor %}#}
{##}
{#    </select></p>#}
{#    <button >编辑</button>#}
{#</form>#}
{#</body>#}
{#</html>#}
{##}
{##}












{% extends 'muban.html' %}


{% block lis %}

<form action="" method="post">
{% csrf_token %}
    <p>名称：<input type="text" name="c_name"  value="{{ret.name}}"><span>{{ k1 }}</span></p>
    <p>编号：<input type="text" name="ass_id"  value="{{ret.ass_id}}"><span>{{ k2 }}</span></p>
{#    <p>购买时间：<input type="text" name="room"  value="{{ret.times}}"><span>{{ k }}</span></p>#}
    <p>所属实验室：<select name="ass_cla" id="" multiple="multiple">

        {% for foo in assets_clas %}
            {% if foo in ret.assets_class.all %}
                <option value="{{ foo.pk }}" selected >{{ foo.name }}</option>
                {% else %}
                <option value="{{ foo.pk }}" >{{ foo.name }}</option>
             {% endif %}
        {% endfor %}

    </select><span>{{ k3 }}</span></p></p>
    <button >编辑</button>
</form>

{% endblock %}

{% block i1 %}
    class='active'
{% endblock %}

